#include <cppunit/extensions/HelperMacros.h>

#include "WillReturnTests.h"

CPPUNIT_TEST_SUITE_REGISTRATION(WillReturnTests::When_no_argument_matching_is_used);

void WillReturnTests::When_no_argument_matching_is_used::Assure_configured_value_is_returned()
{
    _testClass
        .whenCalled(&ITestClass::methodWithNoArguments)
        .willReturn(3);
    CPPUNIT_ASSERT_EQUAL(3, _testClass->methodWithNoArguments());
}
